Skip to content

chore: Replace time.Date with referenceTime#4325

Merged
gmlewis merged 35 commits into
google:masterfrom
gmlewis:i4324-referenceTime
Jun 24, 2026
Merged

chore: Replace time.Date with referenceTime#4325
gmlewis merged 35 commits into
google:masterfrom
gmlewis:i4324-referenceTime

Conversation

@gmlewis

@gmlewis gmlewis commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

Fixes: #4324.
Closes: #4326.

Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
@codecov

codecov Bot commented Jun 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.48%. Comparing base (642da7d) to head (73933c3).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4325   +/-   ##
=======================================
  Coverage   97.48%   97.48%           
=======================================
  Files         193      193           
  Lines       19400    19400           
=======================================
  Hits        18912    18912           
  Misses        270      270           
  Partials      218      218           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

gmlewis added 2 commits June 23, 2026 16:21
Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
@gmlewis

gmlewis commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator Author

@gmlewis gmlewis added the NeedsReview PR is awaiting a review before merging. label Jun 23, 2026

@stevehipwell stevehipwell left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gmlewis sorry for being dense, but I think I'm missing how the +referenceTimeStr+ string works and why it needs to use a ` instead of "?

@gmlewis

gmlewis commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator Author

@gmlewis sorry for being dense, but I think I'm missing how the +referenceTimeStr+ string works and why it needs to use a instead of"`?

Oh, it just keeps the double quote characters in the string.

Comment thread github/actions_workflow_runs_test.go Outdated
Comment thread github/git_commits_test.go
Comment thread github/rate_limit_test.go
gmlewis added 20 commits June 24, 2026 09:39
Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
gmlewis added 11 commits June 24, 2026 12:00
Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
@gmlewis

gmlewis commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator Author

OK, I took a slightly different approach and used unix-seconds-since-epoch for all cases where different timestamps are valuable. I believe that this approach combines the best of both worlds.

Please take another look when you get a chance.

cc: @stevehipwell - @alexandear

@gmlewis gmlewis removed the NeedsReview PR is awaiting a review before merging. label Jun 24, 2026
@gmlewis

gmlewis commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator Author

Thank you, @alexandear!
Merging.

@gmlewis gmlewis merged commit 595de3d into google:master Jun 24, 2026
15 checks passed
@gmlewis gmlewis deleted the i4324-referenceTime branch June 24, 2026 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use referenceTime and referenceTimeStr throughout repo

3 participants